#define  TCP_RUN 0
#if TCP_RUN
#include "tcpClient.h"
#include <iostream>
#else
#include "multicastreceiver.h"
#endif


int main(int argc, char* argv[])
{
#if TCP_RUN
	try
	{

		boost::asio::io_service io_service;
		tcp::resolver r(io_service);
		tcpClient c(io_service);

		c.start(r.resolve(tcp::resolver::query("127.0.0.1", "8100")));

		io_service.run();
	}
	catch (std::exception& e)
	{
		std::cerr << "Exception: " << e.what() << "\n";
	}
#else
	receiverControl g_client("238.255.0.1");
	g_client.Start();
#endif

	system("pause");
	return 0;
}